<?php app::import('model', 'ConceptosPaciente') ?>
<?php $conceptopaciente = new ConceptosPaciente() ?>
<div class="widget_wrap">
    <div class="widget_top">
        <span class="h_icon list">
        </span>
        <h6>
            REGISTRO SIGNOS y S&Iacute;NTOMAS DEL PACIENTE
        </h6>
    </div>
    <div class="widget_content">
        <ul>
            <?php
            $i = 0;
            foreach ($sintomas as $s):
                $conceptpaciente = $conceptopaciente->find('first', array(
                    'conditions' => array(
                        'ConceptosPaciente.consultasexterna_id' => $idconsulta,
                        'ConceptosPaciente.concepto_id' => $s['Concepto']['id'],
                        'ConceptosPaciente.estado' => true)));
                ?>
                <?php echo $this->Form->hidden("ConceptosPaciente.$i.paciente_id", array('value' => $idpaciente)) ?>
                <?php echo $this->Form->hidden("ConceptosPaciente.$i.consultasexterna_id", array('value' => $idconsulta)) ?>
                <?php echo $this->Form->hidden("ConceptosPaciente.$i.alerta_id", array('value' => $s['Alerta']['color'])) ?>
            <?php echo $this->Form->hidden("ConceptosPaciente.$i.hora", array('value' => date('H:i:s'))) ?>
                <li style="background: <?php echo $s['Alerta']['estilo'] ?>">
                    <div class="form_grid_12">

                        <input name="data[ConceptosPaciente][<?php echo $i ?>][concepto_id]" class="checkbox" type="checkbox" value="<?php echo $s['Concepto']['id'] ?>" tabindex="2">
                        <span><?php echo $s['Concepto']['signo'] ?></span>


                    </div>

                </li>

                <div class="clear"></div>

                <?php
                $i++;
            endforeach;
            ?>

        </ul>
    </div>
</div>